<?php
include ( 'test_header.php');
session::create();

class test_class_session extends UnitTestCase{

	function setUp(){
	}
	function tearDown(){
	}
	function test_session_access(){

		session::set( 'test' , 'test' );
	 	 
		$test = session::get('test');
		$this->assertEqual( 'test' , $test );
	}
	function test_session_claer_var(){
		 
		session::set( 'test' , 'test' );
		session::clear( 'test' );

		$test->expectException();
		$this->assertFalse( session::get('test') );
	}	
}

$test = new test_class_session();
$test->run( new HtmlReporter() );








